package com.teamcenter.rac.massupdate.databinding;

import org.eclipse.ui.views.properties.IPropertySource;

import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.util.AdapterUtil;

public class FindChangeItemRevObservable
  extends AbstractFindObservable
{
  public void doSetValue(Object paramObject)
  {
    setMassUpdateType((String)paramObject);
    TCComponentItemRevision localTCComponentItemRevision = findChangeItemRevision();
    if (localTCComponentItemRevision != null)
    {
      IPropertySource localIPropertySource = (IPropertySource)AdapterUtil.getAdapter(localTCComponentItemRevision, IPropertySource.class);
      getUpdateJobModel().setChangeObject(localIPropertySource);
    }
  }
  
  public String getSearchText()
  {
    return getUpdateJobModel().getChangeFindText();
  }
  
  public void setSearchText(String paramString)
  {
    getUpdateJobModel().setChangeFindText(paramString);
  }
}